package com.venutech.gongan.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.venutech.gongan.entity.WorkSpConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkSpConfigMapper {
    //工单添加
    int insert(WorkSpConfig workSpConfig);

    //根据ID删除配置条目
    int delete(@Param("wkcfg_id") int wkcfg_id);

    //查询配置表中用户ID是否存在
    WorkSpConfig searchUserExit(@Param("user_id") Integer user_id, @Param("wk_type") Integer wk_type);

    //分页数据
    List<WorkSpConfig> getList(Page<WorkSpConfig> page);

    //根据id修改配置
    int updateWorkSpConfig(WorkSpConfig workSpConfig);

    //根据ID返回对象
    WorkSpConfig getById(@Param("wkcfg_id") Integer wkcfg_id);

    List<WorkSpConfig> findByWorkType(@Param("workType") Integer workType);

}
